﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/ViewPageAdmin.master" AutoEventWireup="true" CodeBehind="Infoblock.aspx.cs" Inherits="PegasCompany.AdminPanel.Infoblock" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphTitle" runat="server">
    Инфоблоки
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTitleDescription" runat="server">
    Управление инфоблоками на главной странце
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphContent" runat="server">
    <div>
        <asp:MultiView runat="server" ID="mvInfoblock">
            <asp:View runat="server" ID="vInfoblocksList">
                <div class="fieldGrid">
                    <h1>Выберите блок для редактирования</h1>
                    <div class="slideList">
                        <asp:Repeater runat="server" ID="rptInfoblocks">
                            <HeaderTemplate>
                                <asp:Literal runat="server" ID="lUlOpen" Text="<ul>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li>
                                    <asp:HyperLink runat="server" ID="hlEditInfoblock" Text='<%# Eval("Title") %>' NavigateUrl='<%# String.Format("/AdminPanel/Infoblock.aspx?id={0}", Eval("SiteContentId")) %>' />
                                </li>
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:Literal runat="server" ID="lUlClose" Text="</ul>" />
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
            </asp:View>
            <asp:View runat="server" ID="vInfoblockEditor">
                <div class="fieldGrid">
                    <h1>Правка инфоблока</h1>
                    <div class="fieldEntry">
                        <h1>Заголовок [до 18 символов]</h1>
                        <div class="fieldEntryControl">
                            <asp:TextBox runat="server" ID="txtInfoblockTitle" MaxLength="18" />
                        </div>
                    </div>
                    <div class="fieldEntry">
                        <h1>Текст [до 215 символов]
                        </h1>
                        <div class="fieldEntryControl">
                            <ck:CKEditorControl runat="server" ID="txtInfoblockText" BasePath="~/ckeditor" Height="300" MaxLength="215" />
                        </div>
                    </div>
                    <div class="fieldEntry">
                        <div class="fieldButtonPanel">
                            <asp:Button runat="server" ID="btnSave" OnClick="btnSave_Click" Text="Сохранить" />
                        </div>
                    </div>
                </div>
            </asp:View>
        </asp:MultiView>
    </div>
</asp:Content>
